Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.6k Posts
  • Error while building/deploying project Qmake

    Unsolved
    2
    0 Votes
    2 Posts
    194 Views
    SGaistS
    Hi and welcome to devnet, Might be a silly question but do you have make installed on your system ?
  • QStackedWidget with multiple classes

    Unsolved qstackedwidget qstackedwidgets
    2
    0 Votes
    2 Posts
    746 Views
    SGaistS
    Hi, You don't call show on your sw object and it's not part of your stacked widget.
  • Hide widget if parent window width <widget.width ?

    Solved qwidget qlayout qsizepolicy
    5
    0 Votes
    5 Posts
    1k Views
    D
    @SGaist I ended up hocking up to resize event of parent widget to find out when size changed & resize my other widget acordingly. I ended up using "invisible" QLabel that retains size as my "spacer". I had to change its spacing role on the go depending of one or more widget are visible or not as I needed to retain correct order. So far works great. TIA
  • No Taskbar Icon on QDialog is shown before mainwindow.show() is called.

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    Pablo J. RoginaP
    @Chrisw01 said in No Taskbar Icon on QDialog is shown before mainwindow.show() is called.: I've figured this out.. So is it time to mark your post as solved? Thanks.
  • 0 Votes
    6 Posts
    493 Views
    Christian EhrlicherC
    @mpergand said in Trying to open and read a .txt file, but it deletes the actual text from the original file: In fact I'm suprised that the file is emptied Doc: QIODevice::WriteOnly: The device is open for writing. Note that, for file-system subclasses (e.g. QFile), this mode implies Truncate unless combined with ReadOnly, Append or NewOnly.
  • SetTitlebarWidget & its height

    Unsolved qwidget
    3
    0 Votes
    3 Posts
    619 Views
    D
    @SGaist said in SetTitlebarWidget & its height: Hi, You should show your widget implementation. Its something like fo = QDockWidget() fo.show() w = QPushButton("yoyoyooy") w.setMaximumHeight(10) fo.setTitleBarWidget(w) The PushButton is x pixels below top of window, so the title bar is still xx height.
  • QTreeView branch drawing... missing branch?

    Unsolved qtreeview qstyle
    5
    0 Votes
    5 Posts
    2k Views
    SGaistS
    In fact, it's the QTreeView::drawBranch that handles that.
  • std::array or QVector

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    SGaistS
    Then use std::array since it suites your needs.
  • Using QCustomPlot with Qt Quick (QML) instead of QWidget?

    Unsolved qcustomplot qtcreator qml
    3
    0 Votes
    3 Posts
    1k Views
    S
    @vmanso said in Using QCustomPlot with Qt Quick (QML) instead of QWidget?: @SpaceToon Why not just use QtCharts instead of QCustomPlot ? https://doc.qt.io/qt-5/qtcharts-index.html But is it possible du plot sensor data via Bluetooth Low Energy in real time like this: Click for the video
  • CSS padding inside QTabWidget tabs hiding text

    Unsolved qtabwidget qtabbar css
    6
    0 Votes
    6 Posts
    3k Views
    Christian EhrlicherC
    @Chris-Kawa Maybe you can ping @AndyS again so we can take a look on it. I had no time for it to think about an own patch.
  • Check button press of QMessageBox

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    mrjjM
    @JonB Ah, thx. so Poster knows about toplevel windows etc. No reason to get into that again then :)
  • QGraphicsObject: ContextMenu does not show up

    Solved
    16
    0 Votes
    16 Posts
    1k Views
    Christian EhrlicherC
    @sandro4912 said in QGraphicsObject: ContextMenu does not show up: That should be it or any other things to concern? That's fine.
  • Qt app doesn't close properly (still visible in task manager)

    Unsolved
    16
    0 Votes
    16 Posts
    4k Views
    Pl45m4P
    @hobbyProgrammer said in Qt app doesn't close properly (still visible in task manager): I really don't want 1 big class for this as it would probably be 500 lines of code 500 LOC are not that much actually :) You need to know what you want. If you set setQuitOnLastWindowClosed(false) only because of your MessageBox behavior, there is something wrong / not well structured with your classes.
  • Integrate gcc-9 pretty formatting of compile output into QT creator ?

    Unsolved
    3
    0 Votes
    3 Posts
    272 Views
    M
    Qt Creator 4.10.0 What do you mean with "as expected" ? How do you achieve this? Do you have screenshots?
  • On linux platform, could I set a shortcut key through QT

    Solved
    6
    0 Votes
    6 Posts
    581 Views
    C
    @JonB Thank you so much.
  • Exception triggered error while going down in Tableview?

    Solved
    8
    0 Votes
    8 Posts
    510 Views
    Christian EhrlicherC
    processEvents spins a new eventloop - this means events in the queue are processed which may interfere with your stuff.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    15 Views
    No one has replied
  • QTcpSocket transaction not working properly

    Unsolved
    3
    0 Votes
    3 Posts
    453 Views
    VRoninV
    Maybe this example might be helpful: https://wiki.qt.io/WIP-How_to_create_a_simple_chat_application
  • keyPressEvent subclass works only in debug

    Unsolved
    10
    0 Votes
    10 Posts
    742 Views
    M
    @qwasder85 said in keyPressEvent subclass works only in debug: My guess is the keyboard focus. Try setFocus() on your dialog when it opens. Yes, it's definitely related to the focus. It's strange that the default event works in any case.
  • change disabled background color QCheckbox?

    Solved qcheckbox background color
    4
    0 Votes
    4 Posts
    4k Views
    JonBJ
    @pauledd You mean the background color "overspill" to right & bottom? I don't know but you might play with border-... or padding-... (I'm thinking margin- does not use background color, but I might be wrong) having a width/transparency/grey....