Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • 0 Votes
    12 Posts
    1k Views
    Christian EhrlicherC
    @canid said in Under windows7, call QApplication::exit(0) to exit the program. Why is the APPCRASH error reported?: From which window can I get this information? Dependency Walker is an extra tool available in the net. And searching for openssl libs can be done with the explorer. The PATH can als be inspected with Windows tools.
  • QGraphicsSvgItem control size

    Unsolved qgraphicssvgite svg
    5
    0 Votes
    5 Posts
    2k Views
    mrjjM
    Hi If you open the SVG in say inkscape and change its page size (ViewBox) does it then work as expected in your app ? Im not sure i understand what the goal since QSvgRenderer::setViewBox() did change the rendered size for me with QIcon so are we looking for something else ?
  • qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    SGaistS
    -> OpenSSL Check the Maintenance Tool. IIRC, you can install it from there.
  • FontLoader not available

    Unsolved
    2
    0 Votes
    2 Posts
    220 Views
    mrjjM
    Hi and welcome to the forums QTCreator and Qt Design Studio are different products and hence both project structure and and the menus are not the same. As far as I know, you can only do it from code in Creator https://doc.qt.io/qt-5/qml-qtquick-fontloader.html
  • Positioning widgets

    Solved
    6
    0 Votes
    6 Posts
    433 Views
    mrjjM
    Hi And just to have both ways. I mostly do all in Designer and love the promotion feature allowing me to design with a custom widget. I use the dynamic property system to allow Design time customization for my custom widgets and the only code i write is for the dynamic parts. (loading data ) and for the parts that Designer do not support. Also, for a team, using UI files makes it easier for the non-UX developers to add a button and such without having to know exactly how it works as it's easy to drag a widget from left to someplace on the form/in the layout. Finding the same spot in many lines of code is not that easy. Also, designing complex layout using a Designer is good for leaning as you see the result at once. From code, you have to run to see what you got. That said, writing layouts in code, gives a firm understanding of how they work. For your case. Qt does not have anchoring as such with Widgets so unless one of the layouts suits the case, then manually setting the pixmap pos in resizeEvent is also an option.
  • Possible to display lists based on user selection in prior list with PyQT5?

    Unsolved
    2
    0 Votes
    2 Posts
    208 Views
    SGaistS
    Hi, Yes this is possible. Use the currentChange signal of your first view to trigger whatever update is needed for your second view.
  • Possible to play .gif image in QT 3d Studio?

    Unsolved
    1
    0 Votes
    1 Posts
    118 Views
    No one has replied
  • My console program behaves different on linux and windows

    Solved
    7
    0 Votes
    7 Posts
    621 Views
    U
    Ok thanks!.. i will check both answers..
  • QT opacity on background

    Solved
    7
    0 Votes
    7 Posts
    917 Views
    D
    @mrjj Yep that makes sense that it was what was happening, thank you very much for the help!
  • How to register custom pointer so that signal/slot can use it?

    Solved
    3
    0 Votes
    3 Posts
    373 Views
    M
    Oh, my fault. My eventloop is dead lock. No need to register pointer, in fact.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    17 Views
  • How to remove a gray area in my 3d Surface graph.

    Unsolved
    8
    0 Votes
    8 Posts
    655 Views
    D
    @Pl45m4 yes, i try many apis in Q3DSurface, such as Q3DLight, Q3DCamera,scene and have no use. Anyway, thank you!
  • Update data send from class B to class A

    Locked Unsolved
    2
    0 Votes
    2 Posts
    165 Views
    Christian EhrlicherC
    It's the same question as here: https://forum.qt.io/topic/112755/send-real-time-data-from-another-class-to-mainwindow-label/2 Don't double post.
  • Why Q_OBJECT macro needs QObject as its base class

    Unsolved
    2
    0 Votes
    2 Posts
    140 Views
    Christian EhrlicherC
    Because this macro is using QObject functionality.
  • How to change widget in QMainWindow

    Solved
    3
    0 Votes
    3 Posts
    235 Views
    I
    @SGaist Perfect. That is what I was looking for. Thank you very much.
  • Scrolling hint PositionAtBottom not working as expected

    Solved
    3
    0 Votes
    3 Posts
    374 Views
    P
    @SGaist Yes, much better, thanks! I should have had that intution on visibility -- live and learn. Marking as resolved. -Phil void MainWindow::showEvent(QShowEvent *event) { QMainWindow::showEvent(event); QModelIndex index = table->model()->index(50, 0); table->scrollTo(index, QAbstractItemView::PositionAtBottom); } [image: 35d002e4-5d7a-495c-8d55-ba14d8de177b.png] )
  • How to build both static and shared libraries from the same source tree

    Unsolved
    1
    0 Votes
    1 Posts
    161 Views
    No one has replied
  • Change value of QLineEdit from other class

    Solved
    9
    0 Votes
    9 Posts
    787 Views
    R
    Thank you so much for the help, I pass the QLineEdit as a parameter in my constructor and work as I expected =D
  • `QTextList` inside `QTextEdit` not working as expected

    Unsolved
    4
    0 Votes
    4 Posts
    326 Views
    SGaistS
    I'd say you likely have found a bug. I'd recommend taking a look at the bug report system to see if there's something related to it there. If not, please open a new report providing your example project there (please include a .pro file so it can be directly compiled).
  • Send real time data from another class to MainWindow Label

    Unsolved
    2
    0 Votes
    2 Posts
    190 Views
    mrjjM
    Hi emit rarely fails so i would check bool result = connect(a, SIGNAL(textChanged(QString)),ui->lb_ax, SLOT(setText(QString))); qDebug()<<"conn;" << result; Since you do MyOpenGLWidget *a = new MyOpenGLWidget; connect(a, SIGNAL(textChanged(QString)),ui->lb_ax, SLOT(setText(QString))); a->someFunctionThatChangesText(""); It should be the MyOpenGLWidget you think it is, which else is a classic error. Last thing that can be wrong, it that you might somehow block the event loop as you inserted QApplication::processEvents(); QWidget::repaint(); which should not be needed.