Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • Linker error while building Qt source on Windows

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    Did you restart from clean when you added the paths to configure ?
  • 0 Votes
    14 Posts
    6k Views
    A
    yep just did it thanks a lot for the help :)
  • Do we have any line by line debugger in qt to watch how control works

    5
    0 Votes
    5 Posts
    1k Views
    A
    I'm not sure if Qt installs binaries with debug info. Most probably you need to build Qt with debug info and then you will be able to step through Qt C++ source code.
  • Pause and resume a thread in Qt

    10
    0 Votes
    10 Posts
    5k Views
    C
    All my current threads are written via a QThread derived class, need I rewrite all of them to native versions, or is QThread providing an interface for me to access the Windows native thread wrapped by QThread? I think QThread is a wrapper of the underlying operating system native thread.
  • 0 Votes
    2 Posts
    648 Views
    sierdzioS
    The values of left, top, right and bottom that you pass to this function are modified (notice all integers being passed as pointers, not values). You can then read them and they will contain the margins.
  • 0 Votes
    4 Posts
    1k Views
    A
    ok now that you have figured out what was wrong can you please mark this topic as [SOLVED] for other to know that. just edit your main post title
  • [SOLVED] QSerialPort: CTS/RTS pinout checking

    4
    0 Votes
    4 Posts
    2k Views
    C
    thx
  • A qt client connect with a java server

    15
    0 Votes
    15 Posts
    5k Views
    A
    No, unfortunately nothing.
  • How to add drop shadow to qmenu widget

    1
    2 Votes
    1 Posts
    1k Views
    No one has replied
  • QListView only load visible items?

    10
    0 Votes
    10 Posts
    4k Views
    T
    I simply use the setModel method @AppQtServiceListModel model = new AppQtServiceListModel(); ui->list_view->setModel( model );@ The AppQtServiceListModel is based on a QAbstractListModel. After creating the model instance I call an external API function to set the totalCount. -> rowCount now returns the already mentioned ~5k entries. Now the data function gets called: @QVariant AppQtServiceListModel::data( const QModelIndex &index, int role ) const { if ( ! index.isValid() ) return QVariant(); if ( index.row() >= servicesTotal || index.row() < 0 ) return QVariant(); if ( role == Qt::DisplayRole ) { qDebug() << "index row " << index.row(); /* Set the cursor of the external API to match the row index */ ListSetCursorIndex( list, index.row() ); ... return a QVariant with the desired value... } } return QVariant(); }@ Thats basically all.
  • 0 Votes
    1 Posts
    492 Views
    No one has replied
  • Qt webview donot support onended event

    1
    0 Votes
    1 Posts
    496 Views
    No one has replied
  • Global variable help

    9
    0 Votes
    9 Posts
    2k Views
    SGaistS
    Wrong pattern to use in this case.
  • [SOLVED]Have a really weird... error, I guess to call it.

    12
    0 Votes
    12 Posts
    2k Views
    A
    So the problem was the auto generated files from the shadow. Can you edit your first post with [SOLVED] on order for others to know that this is solved.
  • 0 Votes
    3 Posts
    17k Views
    T
    Your server was initially only listening to connections on the same machine. If you want the server to listen to all network interfaces use: QHostAddress::Any
  • [SOLVED] Keys is only available via attached properties

    3
    0 Votes
    3 Posts
    2k Views
    I
    Yes, I know. But the problem was I was using Keys like this Keys {} and must be used like this Keys.on... {} Thanks
  • Color shift after adding Phonon::VideoPlayer in QGraphicsScene

    2
    0 Votes
    2 Posts
    1k Views
    J
    I ran into this same issue using Qt 4.71 on Linux. FWIW, I was able to work around it using a VideoWidget instead of VideoPlayer. This class has a setHue() method which allowed me to shift the hue back to "normal". videoWidget->setHue(1)
  • Webkit is WebPage has error

    4
    0 Votes
    4 Posts
    1k Views
    R
    I see some javascript error, ReferenceError: Can't find variable: Audio [0 line, undefined source] TypeError: 'undefined' is not an object [0 line, undefined source] in def javaScriptConsoleMessage(self, message, line, source) handler. why this error ouccor??
  • Display a window before an other.

    2
    0 Votes
    2 Posts
    581 Views
    dheerendraD
    Question is confusing. Any try with Qt::WindowStaysOnTopHint flag.
  • Ssh , sftp , ftp qt libraries

    5
    0 Votes
    5 Posts
    8k Views
    saeedhardanS
    Ok , i downloaded libssh-0.5.0.exe from the website and linked the ssh.lib with my project and included the libssh.h . and i just wrote this (below) to try it, but i get : [quote] Starting C:\Users\saeed\build-ACS_tool-Desktop_Qt_5_3_MSVC2013_OpenGL_32bit-Debug\debug\ACS_tool.exe... The program has unexpectedly finished. C:\Users\saeed\build-ACS_tool-Desktop_Qt_5_3_MSVC2013_OpenGL_32bit-Debug\debug\ACS_tool.exe crashed [/quote] My code , is simple created a form put on it a push button and defined for it the onclick() : [quote] #include "mainwindow.h" #include "ui_mainwindow.h" #include <stdlib.h> #include "libssh.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { ssh_session my_ssh_session; my_ssh_session = ssh_new(); } [/quote] the code compiles with no error , and if i comment the function on_pushButton_clicked() the program runs with crashing , what could be the problem , because i cant even debug it .