Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.7k Posts
  • Qt::WindowFullScreen - window under taskbar in MS-Windows

    Solved
    8
    0 Votes
    8 Posts
    2k Views
    Pablo J. RoginaP
    @Andy314 said in Qt::WindowFullScreen - window under taskbar in MS-Windows: Indeed it works ! is your issue solved? if so, please don't forget to mark your post as such! Thanks.
  • QtQuickView performance problem.

    Unsolved
    1
    0 Votes
    1 Posts
    137 Views
    No one has replied
  • Import C++/Qt libary into Java Android

    Unsolved
    1
    0 Votes
    1 Posts
    215 Views
    No one has replied
  • Last empty column

    Solved
    4
    0 Votes
    4 Posts
    450 Views
    QWorkingClassHeroQ
    AMOQ: Be HeaderView a subclass of QHeaderView and have setSectionsMovable(true); setStretchLastSection(true); Treat the sectionMoved signal: connect(this, &QHeaderView::sectionMoved, [this](int, int, int newVisual) { if(newVisual == count()-1) { moveSection(newVisual, newVisual-1); } }); and override mousePressEvent: void HeaderView::mousePressEvent(QMouseEvent* event) { int logicalIdx = logicalIndexAt(event->pos()); if(logicalIdx != count()-1) { QHeaderView::mousePressEvent(event); } }
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • Qt console application leaves terminal open on termination

    Solved
    25
    0 Votes
    25 Posts
    4k Views
    SPlattenS
    @jsulm, fixed now, the solution was to from "this" when creating the process.
  • How to save CheckBox state

    Solved
    3
    0 Votes
    3 Posts
    435 Views
    naaxN
    @jsulm Tnx. QString line11 = in.readLine(); ui->Task1->setChecked(line11.toInt()); Works
  • Is it necessary to have a thread dealing with serial data

    Unsolved
    3
    0 Votes
    3 Posts
    252 Views
    Kent-DorfmanK
    As already said, no...but you MUST consider it as streaming character data that can arrive in chunks of any size so your transaction/framing logic needs to be well thought out.
  • Copy library to specific folder when it built via *.pro file. How?

    Unsolved
    3
    0 Votes
    3 Posts
    304 Views
    Kent-DorfmanK
    and makefiles in all flavors do have the ability to execute generic shell scripts...just sayin
  • QSaveFile setDirectWriteFallback()

    Solved
    2
    0 Votes
    2 Posts
    289 Views
    SGaistS
    Hi, You can see the logic here. From the looks of it, you are right.
  • QJsonObject create nested Object

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    mrjjM
    @xeroe Hi Ok that is also possible QJsonObject json { {"type", "textMessage"}, {"subobject", Obj} };
  • QSplitter: Restrict movement after reaching a certain point

    Solved
    4
    0 Votes
    4 Posts
    930 Views
    S
    I forgot to mention - this layout is installed in the QWidget, i.e. splitter separates two widgets (QWidget, that contains vertical layout, that contains QLabel and QTreeView and QStackWidget). I figured out my mistake - I was setting the maximum width (setMaximumWidth) for the QTreeView object, not for the widget added to the splitter (QWidget). @Bonnie thank you!
  • where is my button? Problem with QComboBox

    Solved
    4
    1 Votes
    4 Posts
    564 Views
    mrjjM
    @Pl45m4 Hehe well its fair to say VRonin is not thrilled about setIndexWidget in general but its mostly due to being very heavy and not the right way. But this issues does not happen with QListWidget (even if scrolling ) so I assume its due to how ComboBox works with its viewport.
  • →DRY: retrieve caller object

    Solved
    10
    0 Votes
    10 Posts
    1k Views
    mrjjM
    Hi Just a note about docs Warning https://doc.qt.io/qt-5/qobject.html#sender "Warning: This function violates the object-oriented principle of modularity. However, getting access to the sender might be useful when many signals are connected to a single slot." While it does negatively affect the "loosely coupled" quality of the code, it's more along the line do not use this all over the place and cast sender() to all types of concrete widgets as it will be hard to reuse.
  • connectToHost and waitForConnected

    Solved
    10
    0 Votes
    10 Posts
    2k Views
    JonBJ
    @SPlatten FTR: A TCP/IP connection is a unique combination of four numbers: server IP + port + client IP + port. the same combination cannot be reused. Usually the client specifies the server port to connect on but not which port to use from client side. That gets filled in during the connection (e.g. connectToHost()) with a "random", unused port number at client side. That's how the same client can make multiple, separate connections to the same server service port. You can see this by looking at the port numbers used at client side during, say, multiple FTP connections.
  • 0 Votes
    6 Posts
    1k Views
    Pablo J. RoginaP
    @mariozio said in /etc/profile.d/qt5.sh: line 2: pathappend: command not found : As a result the session will not be configured correctly,you should fix this problem as soon as feasible.: the error is gone. And kde still works If your issue is solved, please mark this post as such! Thanks.
  • QSqlTableModel and QTableView wont populate or even show headers

    Unsolved
    9
    0 Votes
    9 Posts
    637 Views
    SGaistS
    Hi, One thing I can see is the missing opening of the database connection. You create one database, you assign it some path but I did not see any code opening the connection.
  • 0 Votes
    15 Posts
    5k Views
    D
    this worked for me: format.setScanLineDirection(QVideoSurfaceFormat::BottomToTop);
  • Recommendation for QSaveFile commit()

    Solved
    5
    0 Votes
    5 Posts
    639 Views
    R
    Ok, so shouldn't be required is my takeaway from this discussion. I'll probably leave the system("sync") for now just to be conservative.
  • Child window elements are blocked

    Solved
    8
    0 Votes
    8 Posts
    741 Views
    Pl45m4P
    @Helg1980 Nice to hear! Don't forget to mark your issue as solved.