Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QTreeWidget and QScrollArea

    8
    0 Votes
    8 Posts
    10k Views
    E
    That works perfect. Thanks a lot!
  • update row of one table with row inserted in other table SQLITE

    Unsolved
    2
    0 Votes
    2 Posts
    512 Views
    jsulmJ
    @filipdns It is not really a Qt question more a SQL question. In SQL you can use triggers for that. See http://www.mysqltutorial.org/create-the-first-trigger-in-mysql.aspx https://sqlite.org/lang_createtrigger.html
  • NorwegianWoodStyle scrollbar bg texture.

    Unsolved
    4
    0 Votes
    4 Posts
    619 Views
    mrjjM
    @samdol Well since its still possible to style that area of the scrollbar it should be fixable. :) [image: KpQNuz.png]
  • QChart QLegend handle jitter due to rapid updates

    Solved qchart qlegend qsizepolicy
    6
    0 Votes
    6 Posts
    2k Views
    A
    @6thC cool story, thanks for the detailed reply! I've realized that QLegend isn't the best solution for me, so I ended up doing something similar to what you did. I'm using labels with a monospaced font and splitting the whole and fractional parts, so it's a lot nicer now
  • QFtp under Qt 5

    Unsolved
    28
    0 Votes
    28 Posts
    11k Views
    M
    @mrjj Thanks, you too.
  • External .dll in Window/Widget

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    mrjjM
    @Ian-Bray Well if its possible to be a VST compatible app and load such plugins, then it should be possible. Seems to be a standard for plugins.
  • QProgressBar with support multivalue and range

    Unsolved
    2
    0 Votes
    2 Posts
    386 Views
    mrjjM
    Hi Nope QProgressBar has only one span. Im not sure how multi range should work but you can maybe group a few QProgressBar in a container and make interface to¨ define the ranges and the min max for each.
  • QTextEdit html4 to html5 conversion

    Unsolved
    2
    0 Votes
    2 Posts
    578 Views
    mrjjM
    Hi I think the rich text used in QTextEdit is still functional in HTML5 http://doc.qt.io/qt-5/richtext-html-subset.html https://stackoverflow.com/questions/134727/whats-the-key-difference-between-html-4-and-html-5 However it seems some elements dropped – center, font, strike but if that will issue is hard to say.
  • Fixed Content on QGraphicsview

    Solved
    12
    0 Votes
    12 Posts
    4k Views
    mrjjM
    @justStartedQt Super Good work ! \o/ Thank you for posting code. Hehe thank you. If i do not win this year, its a good comfort :)
  • Connect model to different views with different display roles

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    D
    @VRonin said in Connect model to different views with different display roles: KDescendantsProxyModel Hey, thanks a lot. Using another displayRole in the combo is working fine. However I am still stucking with the data of the top level's children. Since I am using PyQt, I think I cannot use KDE. The last update of PyKDE was in 2013 and I do not find an appropriate wheel for installation. Is there another way with pure Qt (PyQt) components? Thanks Daniel
  • Listen to Http server by QTcpSocket

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    m.sueM
    Hi @tham Yes. I use it e.g. to download files. -Michael.
  • Insert Record in QSqlTableModel with QTableView

    Unsolved
    3
    0 Votes
    3 Posts
    5k Views
    I
    I tried this. Like this the record will be inserted in the database table, but somehow the table view is not updated correctly. It looks like this [image: daaae09e-b671-4b33-829d-9023b925d755.png] and I cannot edit the record. PS: Thank you for the hint of the database issue.
  • QUdpSocket readyRead never emitted

    Unsolved
    15
    0 Votes
    15 Posts
    6k Views
    T
    @ZF__ QAbstractSocket also provides signals bytesAbailable and bytesWritten.. First i suggest you to use qthreads.. networka aa; QThread * td = new Thread; aa.moveToThread(td); td.start(); Create udpsocket in networka and connect signals such as bytesAvailable, disconnected and other signals as below in networka QUDPSocket * udpSocket; // other connection related stuff... Connect(udpSocket,SIGNAL(bytesAvailable()),this,SLOT(readData())); // connect other signals ... implement slot in networka something like void readData(){ QByteArray ary = udpSocket.readAll(); // ary contains all data thats read... } this way you can get rid of while loop and corresponding slots will be connected on respective signals.. i.e., when bytes are available in socket, readData Slot will be called and you read data... PS: signals what i mentioned above may not be exact.. please check documentation for exact syntax.
  • QTime::elapsed() behavior

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    JonBJ
    @Bart_Vandewoestyne Reading the docs, QTime::start() only says: "Sets this time to the current time". So startTime.start() is only doing exactly the same as QTime startTime = QTime::currentTime();. And presumably startTime.elapsed(); is only doing same as QTime::currentTime() - startTime. Hence your code works. For the old code, it's only using startTime, which it assigns, so the stand-alone statement QTime::currentTime(); has no effect. You'd have to ask the author :), but I would presume it was unintended.
  • DBUS_SESSION_BUS_ADDRESS with QDBusConnection

    Unsolved
    3
    0 Votes
    3 Posts
    952 Views
    N
    @raven-worx said in DBUS_SESSION_BUS_ADDRESS with QDBusConnection: @nxMan said in DBUS_SESSION_BUS_ADDRESS with QDBusConnection: I want to get DBUS_SESSION_BUS_ADDRESS value without checking envs of any process what do you mean with "without checking envs of any process"? I can find pid of a process wich will have DBUS_SESSION_BUS_ADDRESS env variable and obtain the dbus address from its environment. But I don't want this solution.
  • How to resize the main window again after setFixedSize

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    S
    Why don't you use resize(int w, int h) function instead of setFixedSize(w,h) at the first place?
  • QT, repaint line that doesn't have boundingRect()

    Unsolved qt4 python2 boundingrect qgraphicsscene shape
    2
    0 Votes
    2 Posts
    1k Views
    mrjjM
    Hi I just keep a pointer to the "white lines" and adjust if i move yellow. class ColorItem : public QGraphicsItem { .. ConnectorLine* line = nullptr; .. protected: QVariant itemChange(GraphicsItemChange change, const QVariant& value) override { if (change == ItemPositionChange && scene()) { if (line) { line->adjust(); } } return QGraphicsItem::itemChange(change, value); } private: QColor color; }; line->Adjust() alters its endpoints. You could just adjust it directly here.
  • "GTK" warning for Native QFileDialog under Linux

    Solved
    12
    0 Votes
    12 Posts
    11k Views
    JonBJ
    @jsulm All makes sense now! I had assumed that a normal Qt (X11?) window/dialog would serve as the parent for (what turns out to be a GTK) native file dialog. Now I get the problem, and the reason for the warning!
  • QT widget is not visible properly

    Unsolved
    2
    0 Votes
    2 Posts
    469 Views
    joeQJ
    @CorD-SaC Hi,friend. Welcome. Could you move below code to void MainWindow::showEvent function, try it. QMovie *movie=new QMovie(":/res/icons/giphy.gif"); if (!movie->isValid()) { // Something went wrong :( } ui->labelGif->setMovie(movie); movie->start(); ui->widgetGif->setVisible(true);
  • 0 Votes
    2 Posts
    2k Views
    raven-worxR
    @payman i have no experience with accessibility on Linux. But maybe the following helps you: Qt Accessibility is based on AT-SPI via DBus on Unix/X11 and is tested to be working on Gnome and KDE. Are you sure that i3wm even supports accessibility?