Skip to content

International

Language specific discussions from Albanian to Turkiye

4.1k Topics 17.2k Posts

Subcategories


  • A forum for those speaking Albanian
    18 Topics
    60 Posts
    A

    Vende pune per software inxhinjer me pervoje ne:

    Qt C++ Linux

    Vendi i punes eshte ne Najek, Nju Jork / Nyack, New York.

  • A forum for those speaking Bulgarian
    57 Topics
    522 Posts
    P

    Успях да намеря начин:
    След като с tasklist взема PID на процеса:
    QProcess wmic;
    wmic.start("wmic process where processID=" + pid + " get CommandLine");
    wmic.waitForFinished();
    output = wmic.readAllStandardOutput();
    QString result = output.split("\n").at(1);
    -> Път + екзе = result.split(" ").at(0).toLower()

  • A forum for those speaking Chinese
    623 Topics
    2k Posts
    Christian EhrlicherC

    @classMate-Chen Please don't post pictures but actual error messages. Also the error messages should be in english or use the appropriate subforum.

  • A forum for those speaking Finnish
    11 Topics
    32 Posts
    M

    CLDR (Unicode Common Locale Data Repository), jota Qt nähtävästi käyttää, sanoo (common/main/fi.xml):

    <unit type="digital-byte"> <displayName>tavut</displayName> <unitPattern count="one">{0} tavu</unitPattern> <unitPattern count="one" case="elative">{0} tavusta</unitPattern> <unitPattern count="one" case="genitive">{0} tavun</unitPattern> <unitPattern count="one" case="illative">{0} tavuun</unitPattern> <unitPattern count="one" case="partitive">{0} tavua</unitPattern> <unitPattern count="other">{0} tavua</unitPattern> <unitPattern count="other" case="elative">{0} tavusta</unitPattern> <unitPattern count="other" case="genitive">{0} tavun</unitPattern> <unitPattern count="other" case="illative">{0} tavuun</unitPattern> <unitPattern count="other" case="partitive">{0} tavua</unitPattern> </unit>

    eli Qt:llä on dataa, mutta sitä ei osata käyttää.

    qtbase/util/locale_database/ldml.py yrittää ilmeisesti tehdä hakuja, mutta tekee puutteellisesti, koska units/unitLength[long]/unit[digital-byte]/unitPattern[count=other] ei koskaan haeta (vain short ja narrow haetaan, ei long).

    Markku

  • A forum for those speaking French

    131 Topics
    681 Posts
    S

    bonjour,

    Je dois créer un plugin pour MuseScore qui peut étendre/réduire les durées d'un ensemble de notes sélectionnées selon un pourcentage choisi
    MuseScore le fait pour un pourcentage =50% et 200% mais pas pour un autre pourcentage.

    Voici mon script qml:

    import MuseScore 3.0 import QtQuick 2.2 import QtQuick.Controls 1.1 import QtQuick.Controls.Styles 1.3 import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.1 MuseScore { menuPath: "Plugins.ScaleNotes" description: "Elargir/Rétrécir les durées des notes sélectionnées en pourcentage" onRun: { if (!curScore) { error("No score open.\nThis plugin requires an open score to run.\n") Qt.quit() } } function applyDurationPercentage(score, percentage) { var selectedElements = score.selectedNotes for (var i = 0; i < selectedElements.length; ++i) { var element = selectedElements[i] if (element.isChord()) { var chord = element.toChord() for (var j = 0; j < chord.notes.length; ++j) { var note = chord.notes[j] note.duration *= percentage / 100 } } else { var note = element.toNote() note.duration *= percentage / 100 } } } Rectangle { color: "lightgrey" anchors.fill: parent GridLayout { columns: 2 anchors.fill: parent anchors.margins: 10 Label { text: qsTr("poucentage(0 to 1000): ") } SpinBox { id: velocityOffset maximumValue: 1000 minimumValue: 0 value: 0 editable: true // Permet à l'utilisateur d'entrer directement une valeur // Gestionnaire d'événement appelé lorsque la valeur du SpinBox change onValueChanged: { var getValeur = velocityOffset.value; // Récupérer la valeur du SpinBox console.log("Nouvelle valeur de percentage:", percentage); // Utilisez la valeur de percentage comme vous le souhaitez } } } } Button { id: applyButton text: qsTranslate("PrefsDialogBase", "Apply") onClicked: { applyDurationPercentage(score, getValeur) Qt.quit() } } }

    Pourquoi aucune fenêtre contextuelle ne s'affiche lorsqu'on clique sur ce plugin après avoir crée une partition?

    merci de votre aide

  • A forum for those speaking German
    675 Topics
    4k Posts
    D

    @JonB das wars, Problem gelöst. Danke!!!

  • A forum for those speaking Greek
    42 Topics
    171 Posts
    georgeG

    Κατ΄ αρχήν καλώς σας βρήκα.
    Είμαι νέος χρήστης του Qt, και έχω μικρή εμπειρία σε C++
    Προσπαθώντας να εξοικοιωθώ με τα βασικά, δημιούργησα με τον Qt creator την ελάχιστη εφαρμογή με τον παρακάτω κώδικα:
    Header:

    #ifndef CWINDOW_H #define CWINDOW_H #include <QMainWindow> namespace Ui { class CWindow; } class CWindow : public QMainWindow { Q_OBJECT public: explicit CWindow(QWidget *parent = 0); ~CWindow(); private: Ui::CWindow *ui; }; #endif // CWINDOW_H

    Αρχείο CPP:

    #include "cwindow.h" #include "ui_cwindow.h" CWindow::CWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::CWindow) { ui->setupUi(this); } CWindow::~CWindow() { delete ui; }

    Αρχείο με την συνάρτηση main():

    #include "cwindow.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); CWindow w; w.show(); return a.exec(); }

    Στο αρχείο main δημιουργείται ένα νέο αντικείμενο w της κλάσης CWindow, σωστά;
    CWindow w;

    Όμως δημιουργείται ακόμα ένα νέο αντικείμενο της κλάσης CWindow μέσω του δείκτη *ui
    CWindow::CWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::CWindow)

    Αν στα παραπάνω δεν έχει κάποιος αντίρρηση, το ερώτημα που έχω είναι γιατί πρέπει να δημιουργηθούν δύο αντικείμενα της ίδιας κλάσης CWindow;

  • A forum for those speaking Hungarian
    26 Topics
    129 Posts
    defineRazD

    Sziasztok!

    Nem tudom tudtok-e segíteni a helyzet a következő lenne, írtam egy rövid kis "login" applikációt, problémám a következő lenne:
    Beírom a login adatokat (secondDialog-on) majd gombnyomásra ezt az ablakot egy hide-al elrejtve megjelenítem a MainWindowot(ez így persze rendben is), MainWindowon elhelyeztem egy gombot ami azért felel hogy bezárja a programot hogy ne fusson tovább(ez is rendben), viszont hogyha a MainWindowon a fenti ablak program bezárást választom nem a gombnyomást, sajnos fut a háttérben a progi és nem zárja be vele az applikációt. Valamit kód ügyileg biztos nem jól csinálok(hogyan nézne ki egy életképes forrás kód, mi lenne a megfelelő eljárás?). Segítségeteket előre is köszönöm. Remélem azért él még ez a kis fórum csoport :D .

    Teljes kód:
    main.cpp

    #include "secondDialog.h" #include <QApplication> int main(int argc, char *argv[]) { QApplication a(argc, argv); secondDialog sD; sD.show(); return a.exec(); }

    mainwindow.cpp

    #include "mainwindow.h" #include "ui_mainwindow.h" #include <QString> #include <QMessageBox> #include <QApplication> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { QApplication::quit(); }

    seconddialog.cpp

    #include "seconddialog.h" #include "ui_seconddialog.h" #include <QString> #include <QMessageBox> secondDialog::secondDialog(QWidget *parent) : QDialog(parent) , ui(new Ui::secondDialog) { ui->setupUi(this); } secondDialog::~secondDialog() { delete ui; } void secondDialog::on_pushButton_clicked() { QString usr = ui->user->text(); QString pw = ui->password->text(); if(usr == "admin" && pw == "admin"){ QMessageBox::information(this,"Login page","Succesfully logged in"); hide(); mw = new MainWindow(this); mw->show(); }else {QMessageBox::warning(this,"Login page","Username or password is incorrect");} }

    seconddialog.h

    #ifndef SECONDDIALOG_H #define SECONDDIALOG_H #include <QDialog> #include "mainwindow.h" namespace Ui { class secondDialog; } class secondDialog : public QDialog { Q_OBJECT public: explicit secondDialog(QWidget *parent = nullptr); ~secondDialog(); private slots: void on_pushButton_clicked(); private: Ui::secondDialog *ui; MainWindow *mw; }; #endif // SECONDDIALOG_H

    mainwindow.h

    #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); private slots: void on_pushButton_clicked(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_H
  • A forum for members from India
    196 Topics
    1k Posts
    safnaS

    you can reach us with specs your a looking for if you need web graphics designers.

  • A forum for those speaking Italian
    453 Topics
    2k Posts
    F

    in linux mint tutto ok.stesso sorgente. bò.
    stessa cosa con code::blocks wx widget.
    funziona al primo colpo.in win 10 .
    file o directory non esistente.
    Schermata a 2024-03-02 23-57-33.png

  • A forum for those speaking Japanese
    91 Topics
    294 Posts
    V

    @viora

    プロジェクトをgithubにあげました。

    https://github.com/miyabin1701/qtmecabon/tree/master

    使い方などご案内

    https://qtmecabon.techblog.jp/archives/4254570.html

    PLAYボタンはPOUSEボタンを兼ねているので、1クリックで2度来ると
    PLAY押したはずなのにPOUSEになっている。とか使いにくかったです。
    ダイヤルはお気に入りでしたけど

  • A forum for those speaking Korean

    47 Topics
    77 Posts
    SGaistS

    @jsulm moved

  • A forum for those speaking Persian
    364 Topics
    2k Posts
    ?

    سلام
    من هر کاری کردم نتونستم این مسئله رو حل کنم. با qt6.5.0 دارم کامپایل می کنم. تفاوت designer و برنامه کامپایل شده به صورتی مقیاسی زیاده. این مقیاس هم همونی هست که تو ویندوز تنظیم می شه. منتها من می خوام چیزی هم که تو designer نشون می ده همونی باشه که کامپایل می کنه. یعنی سایز و ابعاد کامپایل شده درست هست. ولی سایز و ابعاد design view کوچک تره. اینم یه نمونه.
    https://drive.google.com/file/d/1oPCpIctbh9lgRSMbFnIiTSZmLba0I3R2/view?usp=sharing
    یه بحثی هم تو این لینک داشتم
    https://forum.qt.io/topic/141835/qt-creator9-along-with-qt6-4-doesnt-compile-wysiwyg-not-similar-with-preview/14?_=1682244060150

  • A forum for those speaking Polish
    292 Topics
    1k Posts
    sierdzioS

    @dziubasa co do licencji jest też opcja Start Up, znacznie tańsza: https://www.qt.io/pricing/qt-for-small-business

    Ale wracając do pytania: zarówno GPL jak i LGPL mogą być wykorzystywane komercyjnie. Te licencje w ogóle nie zajmują się kwestią pieniędzy, w nich chodzi tylko o wolność kodu i prawa użytkowników do wglądu w kod, podmiany bibliotek itd. Także spokojnie możesz na programie zarabiać i nie ma znaczenia czy program jest tylko dla pracowników urzedu czy ogólnie dostępny.

    Za to to, co musisz zrobić, to spełnić wymagania licencji którą wybierzesz. W aplikacjach komercyjnych zdecydowanie najpopularniejszą opcją jest LGPL.

    Różnice w wielkim skrócie: w GPL twój kod również musi być GPL. W LGPL twój kod może mieć dowolną licencję (w tym w pełni "zamkniętą", komercyjną) ale musisz umożliwić użytkownikom podmianę Qt na ich własną wersję (bardzo łatwe w przypadku bibliotek dynamicznych (DLL)).

    W obu licencjach:

    musisz poinformować użytkowników, że wykorzystujesz Qt i na jakiej licencji musisz dołączyć pełen kod licencji do produktu na życzenie klienta musisz udostępnić kod Qt (a w przypadku GPL również kod twojej apki)

    Więcej info: https://www.tldrlegal.com/license/gnu-lesser-general-public-license-v3-lgpl-3 i https://www.tldrlegal.com/license/gnu-general-public-license-v3-gpl-3

  • A forum for those speaking Portuguese
    416 Topics
    2k Posts
    A

    veja nesse endereço: https://forum.qt.io/topic/91242/criação-de-novo-projeto

    espero ter ajudado

  • A forum for those speaking Romanian
    28 Topics
    111 Posts
    T

    if i have 123.656
    i want the 124 number in qt into quint16

    [Locked as duplicate of: https://forum.qt.io/topic/113231/how-to-convert-double-number-to-quint16 ~kshegunov]

  • A forum for those speaking Spanish
    501 Topics
    2k Posts
    R

    Hello Chrish, I have to access (read, modify) the .text property of a QlineEdit, of a Row generated with Qt, .ui extension, 'translated' to .py.

    In the .py program with which I 'work' it has to 'import' the .py and it does, it just DOES NOT 'access', unknown field,

  • Turkiye
    94 Topics
    286 Posts
    A.A.SEZENA

    ilave olarak pro dosyasına aşağıdaki satırı eklediğinizden emin olun.

    QT += printsupport